home *** CD-ROM | disk | FTP | other *** search
/ Apple II Magazines (PO) / Nibble Volume 11, No. 07 (1990-07)(MindCraft Publishing)(Side A).zip / Nibble Volume 11, No. 07 (1990-07)(MindCraft Publishing)(Side A).po / TE.REZ.txt < prev   
Text File  |  1996-12-24  |  16KB  |  427 lines

  1. /*************************************************/
  2. /*                                               */
  3. /*    TE.REZ Resource Specifications Listing     */
  4. /*              by  Sandy Mossberg               */
  5. /*                                               */
  6. /*                 APW Compiler                  */
  7. /*      Requires APW Tools and Interfaces,       */
  8. /*                 version 1.1                   */
  9. /*                                               */
  10. /*              Copyright (C) 1990               */
  11. /*           by MindCraft Publ. Corp.            */
  12. /*              Concord, MA  01742               */
  13. /*                                               */
  14. /*************************************************/
  15.  
  16. #include "types.rez"
  17.  
  18. /**************************************************************/
  19. /*                                                            */
  20. /* Tool startup resource:                                     */
  21. /*                                                            */
  22. /**************************************************************/
  23.  
  24. resource    rToolStartup    (0x07FE0001, nocrossbank)   {
  25.     0xC080,             /* 640x200 mode, fastport, shadowing */
  26.     {
  27.     0x03,0x0300,          /* Miscellaneous Tools */
  28.     0x04,0x0301,          /* QuickDraw II */
  29.     0x05,0x0301,          /* Desk Manager */
  30.     0x06,0x0300,          /* Event Manager */
  31.     0x07,0x0200,          /* Scheduler */
  32.     0x09,0x0201,          /* Apple Desktop Bus */
  33.     0x0A,0x0202,          /* SANE */
  34.     0x0B,0x0200,          /* Integer Math */
  35.     0x0C,0x0201,          /* Text Tools */
  36.     0x0E,0x0301,          /* Window Manager */
  37.     0x0F,0x0301,          /* Menu Manager */
  38.     0x10,0x0301,          /* Control Manager */
  39.     0x12,0x0300,          /* QuickDraw Auxiliary */
  40.     0x13,0x0300,          /* Print Manager */
  41.     0x14,0x0301,          /* LineEdit Tool Set */
  42.     0x15,0x0301,          /* Dialog Manager */
  43.     0x16,0x0300,          /* Scrap Manager */
  44.     0x17,0x0300,          /* Standard Files */
  45.     0x1B,0x0301,          /* Font Manager */
  46.     0x1C,0x0301,          /* List Manager */
  47.     0x22,0x0100           /* TextEdit Tool Set */
  48.     }
  49. };
  50.  
  51. /**************************************************************/
  52. /*                                                            */
  53. /* Menu resources:                                            */
  54. /*                                                            */
  55. /**************************************************************/
  56.  
  57. resource    rMenuBar    (0x1)   {
  58.     {
  59.     0x07FE0001,         /* Apple menu ref */
  60.     0x07FE0002,         /* File menu ref */
  61.     0x07FE0003          /* Edit menu ref */
  62.     }
  63. };
  64.  
  65. resource    rMenu       (0x07FE0001)    {
  66.     1,                  /* menu ID (Apple menu) */
  67.     RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
  68.     +fAllowCache,       /* flags */
  69.     0x07FE0001,         /* title ref */
  70.     {0x07FE1001}        /* item ref array (About) */
  71. };
  72.  
  73. resource    rPString    (0x07FE0001)    {
  74.     "@"
  75. };
  76.  
  77. resource    rMenuItem   (0x07FE1001)    {
  78.     256,                /* item ID (About) */
  79.     "","",              /* keystroke equivalents (none) */
  80.     NIL,                /* code for checked item (none) */
  81.     RefIsResource*ItemTitleRefShift+rMIDivider,  /* flags */
  82.     0x07FE1001          /* title string ref */
  83. };
  84.  
  85. resource    rPString    (0x07FE1001)    {
  86.     "About Text Editor..."
  87. };
  88.  
  89. resource    rMenu       (0x07FE0002)     {
  90.     2,                  /* menu ID (File menu) */
  91.     RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
  92.     +fAllowCache,       /* flags */
  93.     0x07FE0002,         /* title ref */
  94.     {0x07FE2001,0x07FE2002,0x07FE2003,0x07FE2004,0x07FE2005,
  95.     0x07FE2006,0x07FE2007,0x07FE2005,0x07FE2008}
  96.                         /* item ref array (all items) */
  97. };
  98.  
  99. resource    rPString    (0x07FE0002)    {
  100.     "  File  "
  101. };
  102.  
  103. resource    rMenuItem   (0x07FE2001)    {
  104.     258,                /* item ID (New) */
  105.     "N","n",            /* keystroke equivalents */
  106.     NIL,                /* code for checked item */
  107.     RefIsResource*ItemTitleRefShift,  /* flags */
  108.     0x07FE2001          /* title ref string */
  109. };
  110.  
  111. resource    rPString    (0x07FE2001)    {
  112.     "New"
  113. };
  114.  
  115. resource    rMenuItem   (0x07FE2002)    {
  116.     259,                /* item ID (Open) */
  117.     "O","o",            /* keystroke equivalents */
  118.     NIL,                /* code for checked item */
  119.     RefIsResource*ItemTitleRefShift,  /* flags */
  120.     0x07FE2002          /* title ref string */
  121. };
  122.  
  123. resource    rPString    (0x07FE2002)    {
  124.     "Open"
  125. };
  126.  
  127. resource    rMenuItem   (0x07FE2003)    {
  128.     255,                /* item ID (Close) */
  129.     "W","w",            /* keystroke equivalents */
  130.     NIL,                /* code for checked item */
  131.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  132.     0x07FE2003          /* title ref string */
  133. };
  134.  
  135. resource    rPString    (0x07FE2003)    {
  136.     "Close"
  137. };
  138.  
  139. resource    rMenuItem   (0x07FE2004)    {
  140.     260,                /* item ID (Save) */
  141.     "S","s",            /* keystroke equivalents */
  142.     NIL,                /* code for checked item */
  143.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  144.     0x07FE2004          /* title ref string */
  145. };
  146.  
  147. resource    rPString    (0x07FE2004)    {
  148.     "Save..."
  149. };
  150.  
  151. resource    rMenuItem   (0x07FE2005)    {
  152.     300,                /* item ID (divider) */
  153.     "","",              /* keystroke equivalents */
  154.     NIL,                /* code for checked item */
  155.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  156.     0x07FE2005          /* title ref string */
  157. };
  158.  
  159. resource    rPString    (0x07FE2005)    {
  160.     "-"
  161. };
  162.  
  163. resource    rMenuItem   (0x07FE2006)    {
  164.     261,                /* item ID (divider) */
  165.     "","",              /* keystroke equivalents */
  166.     NIL,                /* code for checked item */
  167.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  168.     0x07FE2006          /* title ref string */
  169. };
  170.  
  171. resource    rPString    (0x07FE2006)    {
  172.     "Page Setup..."
  173. };
  174.  
  175. resource    rMenuItem   (0x07FE2007)    {
  176.     262,                /* item ID (divider) */
  177.     "P","p",            /* keystroke equivalents */
  178.     NIL,                /* code for checked item */
  179.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  180.     0x07FE2007          /* title ref string */
  181. };
  182.  
  183. resource    rPString    (0x07FE2007)    {
  184.     "Print..."
  185. };
  186.  
  187. resource    rMenuItem   (0x07FE2008)    {
  188.     257,                /* item ID (Quit) */
  189.     "Q","q",            /* keystroke equivalents */
  190.     NIL,                /* code for checked item */
  191.     RefIsResource*ItemTitleRefShift,  /* flags */
  192.     0x07FE2008          /* title ref string */
  193. };
  194.  
  195. resource    rPString    (0x07FE2008)    {
  196.     "Quit"
  197. };
  198.  
  199. resource    rMenu       (0x07FE0003)    {
  200.     3,                  /* menu ID (Edit menu) */
  201.     RefIsResource*MenuTitleRefShift+RefIsResource*ItemRefShift
  202.     +fDisabled+fAllowCache,  /* flags */
  203.     0x07FE0003,         /* title ref string */
  204.     {0x07FE3001,0x07FE3002,0x07FE3003,0x07FE3004,0x07FE3005}
  205.                         /* item ref array (all items) */
  206. };
  207.  
  208. resource    rPString    (0x07FE0003)    {
  209.     "  Edit  "
  210. };
  211.  
  212. resource    rMenuItem   (0x07FE3001)    {
  213.     250,                /* item ID (Undo) */
  214.     "Z","z",            /* item chars */
  215.     NIL,                /* keystroke equivalents */
  216.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  217.     0x07FE3001          /* title ref string */
  218. };
  219.  
  220. resource    rPString    (0x07FE3001)    {
  221.     "Undo"
  222. };
  223.  
  224. resource    rMenuItem   (0x07FE3002)    {
  225.     251,                /* item ID (Cut) */
  226.     "X","x",            /* keystroke equivalents */
  227.     NIL,                /* code for checked item */
  228.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  229.     0x07FE3002          /* title ref string */
  230. };
  231.  
  232. resource    rPString    (0x07FE3002)    {
  233.     "Cut"
  234. };
  235.  
  236. resource    rMenuItem   (0x07FE3003)    {
  237.     252,                /* item ID (Copy) */
  238.     "C","c",            /* keystroke equivalents */
  239.     NIL,                /* code for checked item */
  240.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  241.     0x07FE3003          /* title ref string */
  242. };
  243.  
  244. resource    rPString    (0x07FE3003)    {
  245.     "Copy"
  246. };
  247.  
  248. resource    rMenuItem   (0x07FE3004)    {
  249.     253,                /* item ID (Paste) */
  250.     "V","v",            /* keystroke equivalents */
  251.     NIL,                /* code for checked item */
  252.     RefIsResource*ItemTitleRefShift,  /* flags */
  253.     0x07FE3004          /* title ref string */
  254. };
  255.  
  256. resource    rPString    (0x07FE3004)    {
  257.     "Paste"
  258. };
  259.  
  260. resource    rMenuItem   (0x07FE3005)    {
  261.     254,                /* item ID (Clear) */
  262.     "","",              /* keystroke equivalents */
  263.     NIL,                /* code for checked item */
  264.     RefIsResource*ItemTitleRefShift+fDisabled,  /* flags */
  265.     0x07FE3005          /* title ref string */
  266. };
  267.  
  268. resource    rPString    (0x07FE3005)    {
  269.     "Clear"
  270. };
  271.  
  272. /**************************************************************/
  273. /*                                                            */
  274. /* Alert string resource:                                     */
  275. /*                                                            */
  276. /**************************************************************/
  277.  
  278. resource    rAlertString    (0x07FE0001)    {
  279.     "0"                                 /* use custom coords */
  280.     "\0d060\0d000\0d160\0d000\0d140\0d000\0d224\0d001"
  281.                                         /* custom coords */
  282.     "0/"                                /* no icon, separator */
  283.     TBCenterJust                        /* centered */
  284.     TBStyleBold                         /* bold style */
  285.     TBEndOfLine                         /* CR */
  286.     "Text Editor"                       /* title text */
  287.     TBStylePlain                        /* standard style */
  288.     "\n\nby Sandy Mossberg\n"           /* 2CR, credit text */
  289.     "(c)1990 by MindCraft Publ. Corp."  /* CR, credit text */
  290.     "/^#0\0x00"                          /* separ, OK, terminator */
  291. };
  292.  
  293. /**************************************************************/
  294. /*                                                            */
  295. /* Window resources:                                          */
  296. /*                                                            */
  297. /**************************************************************/
  298.  
  299. resource    rWindParam1     (0x1001)    {
  300.     fTitle+fClose+fZoom+fMove+fVis+fAllocated+fHilited,
  301.                         /* frame description */
  302.     0x1002,             /* title ref */
  303.     NIL,                /* refCon */
  304.     {0,0,0,0},          /* zoom size (full screen */
  305.     0x1003,             /* color table ref */
  306.     {0,0},              /* origin */
  307.     {0,0},              /* data size */
  308.     {0,0},              /* max height/width */
  309.     {0,0},              /* vert/horiz scroll arrow values */
  310.     {0,0},              /* vert/horiz page values */
  311.     NIL,                /* info bar refCon */
  312.     NIL,                /* info bar height */
  313.     {40,40,140,300},    /* initial coords */
  314.     inFront,            /* plane */
  315.     0x2001,             /* ref to rControlList */
  316.     0x0A02              /* refs are resources, single item */
  317. };
  318.  
  319. resource    rPString        (0x1002)    {
  320.     " Untitled "
  321. };
  322.  
  323. resource    rWindColor      (0x1003)    {
  324.     0x0000,             /* frame */
  325.     0x0F00,             /* title string and inact title bar */
  326.     0x020F,             /* active title bar (racing stripes) */
  327.     0x00F0,             /* grow box and alert's middle outline */
  328.     0x00F0              /* info bar and alert's inside outline */
  329. };
  330.  
  331. resource    rWindParam1     (0x1101)    {
  332.     fTitle+fClose+fZoom+fMove+fVis+fAllocated+fHilited,
  333.                         /* frame description */
  334.     0x1102,             /* title ref */
  335.     NIL,                /* refCon */
  336.     {0,0,0,0},          /* zoom size (full screen */
  337.     NIL,                /* color table ref (default) */
  338.     {0,0},              /* origin */
  339.     {0,0},              /* data size */
  340.     {0,0},              /* max height/width */
  341.     {0,0},              /* vert/horiz scroll arrow values */
  342.     {0,0},              /* vert/horiz page values */
  343.     NIL,                /* info bar refCon */
  344.     NIL,                /* info bar height */
  345.     {70,320,190,600},   /* initial coords */
  346.     inFront,            /* plane */
  347.     0x2101,             /* ref to rControlList */
  348.     0x0A02              /* refs are resources, single item */
  349. };
  350.  
  351. resource    rPString        (0x1102)    {
  352.     " Heinlein "
  353. };
  354.  
  355. /**************************************************************/
  356. /*                                                            */
  357. /* Control resources:                                         */
  358. /*                                                            */
  359. /**************************************************************/
  360.  
  361. resource    rControlTemplate    (0x2001)    {
  362.     1,                          /* ID */
  363.     {0,0,0,0},                  /* coords (fill window) */
  364.     editTextControl {{          /* editText defProc */
  365.     ctlVisible,                 /* flags */
  366.     fCtlCanBeTarget+fCtlWantsEvents+fCtlProcNotPtr
  367.     +fCtlTellAboutSize+fCtlIsMultiPart,  /* more flags */
  368.     NIL,                        /* Refcon */
  369.     fSingleFormat+fSmartCutPaste+fGrowRuler,  /* text flags */
  370.     {0xFFFF,0xFFFF,0xFFFF,0xFFFF},  /* indent rect (default) */
  371.     0xFFFFFFFF,                 /* create vert scroll bar */
  372.     NIL,                        /* vert scrolling (default) */
  373.     NIL,NIL,                    /* horiz scrolling (must be 0) */
  374.     NIL,                        /* style ref (default) */
  375.     NIL,                        /* text descriptor (no text) */
  376.     NIL,                        /* text ref */
  377.     NIL }}                      /* text length */
  378. };
  379.  
  380. resource    rControlTemplate    (0x2101)    {
  381.     1,                          /* ID */
  382.     {0,0,0,0},                  /* coords (fill window) */
  383.     editTextControl {{          /* editText defProc */
  384.     ctlVisible,                 /* flags */
  385.     fCtlCanBeTarget+fCtlWantsEvents+fCtlProcNotPtr
  386.     +fCtlTellAboutSize+fCtlIsMultiPart,  /* more flags */
  387.     NIL,                        /* Refcon */
  388.     fSingleFormat+fSmartCutPaste+fGrowRuler,  /* text flags */
  389.     {0xFFFF,0xFFFF,0xFFFF,0xFFFF},  /* indent rect (default) */
  390.     0xFFFFFFFF,                 /* create vert scroll bar */
  391.     NIL,                        /* vert scrolling (default) */
  392.     NIL,NIL,                    /* horiz scrolling (must be 0) */
  393.     NIL,                        /* style ref (default) */
  394.     dataIsTextBlock+RefIsResource*8,   /* text descriptor */
  395.     0x2102,                     /* text ref */
  396.     NIL }}                      /* text length */
  397. };
  398.  
  399. resource    rText               (0x2102)    {
  400.     "\n\tThe two highest achievements of the human mind are "
  401.     "the twin concepts of \"loyalty\" and \"duty.\"  Whenever "
  402.     "these twin concepts fall into disrepute - get out of there "
  403.     "fast!  You may possibly save yourself, but it is too late to "
  404.     "save the society.  It is doomed.\n\n"
  405.     "\tIn a mature society, \"civil servant\" is semantically "
  406.     "equivalent to \"civil master.\"\n\n"
  407.     "\tWhat are the facts?  Again and again and again - what "
  408.     "are the facts?  Shun wishful thinking, ignore divine "
  409.     "revelation, forget \"what the stars foretell,\" avoid "
  410.     "opinion, care not what the neighbors think, never mind the "
  411.     "unguessable \"verdict of history\" - what are the facts, and "
  412.     "to how many decimal places?  You pilot always into an unknown"
  413.     " future; facts are your single clue.  Get the facts!\n\n"
  414.     "\tA motion to adjourn is always in order.\n\n"
  415.     "\tYou can have peace.  Or you can have freedom.  Don't "
  416.     "ever count on having both at one time.\n\n"
  417.     "\tAnyone who cannot cope with mathematics is not fully "
  418.     "human.  At best he is a tolerable subhuman who has learned to"
  419.     " wear shoes, bathe, and not make messes in the house.\n\n"
  420.     "\tNever underestimate the power of human stupidity.\n\n"
  421.     "\tWriting is not necessarily something to be ashamed of - "
  422.     "but do it in private and wash your hands afterwards.\n\n"
  423.     "\tTANSTAAFL. [There ain't no such thing as a free lunch.]\n\n"
  424.     "--Excerpts from the notebook of Lazerus Long\n"
  425.     "--Robert A. Heinlein"
  426. };
  427.